package com.yx.shop.dao.admin;

import com.yx.shop.entitly.User;

import java.util.List;

/**
 * @Classname AdminUserDao
 * @Description TODO:
 * @Date 2021/05/10 15:30
 * @Created by yx
 */
public interface AdminUserDao {
    /**
     * @Author:yx
     * @return com.yx.shop.entitly.User
     * @Date 2021/05/10 15:39
     * @param username
     * @param password
     * @Description:管理员登录
     **/
    User login(String username, String password);

    /**
     * @Author:yx
     * @return java.util.List<com.yx.shop.entitly.User>
     * @Date 2021/05/10 16:34
     * @param sql
     * @param args
     * @Description:根据条件查询用户
     **/
    List<User> searchByKey(String sql, Object[] args);

    /**
     * @Author:yx
     * @return java.lang.Integer
     * @Date 2021/05/10 16:34
     * @param uid
     * @Description:根据uid删除用户
     **/
    Integer deleteByUid(Integer uid);
}
